import request from '@/utils/request'

export function loginByUsername(params) {
  return request({
    url: '/api/login',
    method: 'get',
    params
  })
}

export function getUserInfo() {
  return request({
    url: '/api/login/loginUserInfo',
    method: 'get',
  })
}